package com.itheima.tanhua.dubbo.api;

import com.itheima.tanhua.model.domain.PageResult;
import com.itheima.tanhua.model.mongo.Movement;
import com.itheima.tanhua.model.mongo.MovementTimeLine;

import java.util.List;

public interface MovementsApi {
    void publishMovements(Movement movement);

    PageResult findByUserId(Integer page, Integer pagesize, Long userId);

    List<Movement> findTimeLine(Integer page, Integer pagesize, Long userId);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement findByMovmentId(String id);
}
